package ru.amse.tsyganov.jumleditor.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;

import ru.amse.tsyganov.jumleditor.model.ActionState;

public class ActionStateView<T extends ActionState> 
	extends StateView<T> {
	
	/*package*/ ActionStateView(T model) {
		setModel(model);
	}
	
	@Override
	public void paintFigure(GC gc) {
		
		if (gc == null) {
			throw new IllegalArgumentException();
		}
		
		// Stub
		gc.setAntialias(SWT.ON);
		
		gc.setBackground(Colors.greenColor);
		gc.fillRectangle(getRectangle());
		
		gc.setForeground(Colors.blackColor);
		gc.drawRectangle(getRectangle());
		// Stub end
	}
}
